package com.smallcc.util;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

/**
 * @author 晓风过境
 * @TODO
 * @date 2018/3/31 14:51
 * @day 31
 * @return $text$
 * @title ${CLASS_NAME}
 * @project_name sell
 */
public class JsonUtil {
    public static String toJson(Object object){
        GsonBuilder gsonBuilder=new GsonBuilder();
        gsonBuilder.setPrettyPrinting();
        Gson gson=gsonBuilder.create();
        return gson.toJson(object);
    }
}
